import { createSSRApp } from "vue";
import App from "./App.vue";
import tabBar from "./components/tabbar/index.vue";
import wangEditor from "./components/wangEditor/index.vue";
import cuCustom from "./colorui/components/cu-custom.vue";
export function createApp() {
  const app = createSSRApp(App);
  app.component("TabBar", tabBar);
  app.component("CuCustom", cuCustom);
  app.component("WangEditor", wangEditor);
  // 配置全局变量 页面中使用 inject 接收
  app.provide("global", {
    StatusBar: 0,
    CustomBar: 0,
  });

  return {
    app,
  };
}
